package main

import "fmt"

func main() {

	var monsters []map[string]string
	monsters = make([]map[string]string, 2)

	if monsters[0] == nil {

		monsters[0] = make(map[string]string, 2)
		monsters[0]["name"] = "牛魔王"
		monsters[0]["age"] = "23"

	}

	if monsters[1] == nil {

		monsters[1] = make(map[string]string, 2)
		monsters[1]["name"] = "孙悟空"
		monsters[1]["age"] = "25"

	}

	newMonster := map[string]string {

		"name": "新的妖怪",
		"age": "200",

	}

	monsters = append(monsters, newMonster)

	fmt.Println(monsters)

}